package service

import (
	"gorm.io/gorm"
	"table-compare/db"
)

type TableService struct {
	db *gorm.DB
}

func (s *TableService) GetTablesBySystemId(systemId uint) []db.Table {
	var rs []db.Table
	s.db.Model(&db.Table{}).Where(db.Table{SystemId: systemId}).Find(&rs)
	return rs
}


